home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AS225 daemon launch?
- Date: 7 Jan 1996 19:18:00 +0100
- Organization: dis-
- Message-ID: <4cp2op$d89@serpens.rhein.de>
- References: <19960106.7CB5338.12AAC@sdcc8.ucsd.edu>
- NNTP-Posting-Host: serpens.rhein.de
-
- jfriesne@sdcc8.ucsd.edu (Jeremy Friesner) writes:
-
- >How can a server program know, for sure, that it was launched by the AS225
- >inetd daemon, vs. being launched from a CLI? The command-line-arguments
- >that inetd provides give a hint, but they could be faked, etc.
-
- They could be faked. Yes. However, the daemon has to use the socket pointer
- and AFAIK this is validated by s_inherit. You could still run it from a shell
- and guess a valid socket pointer though. Since socket pointers are passed
- quickly the chance for an error is pretty low.
-
- Regards,
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-